import { createApp } from 'vue'
import App from './App.vue'
// element-plus插件
import installElementPlus from './plugins/element'
// 基础css
import './style/base.scss'
// vue-router
import router from './router'
// vue-store
import store from './store'

// icon
import '@/icons/index.js' // icon
import SvgIcon from '@/components/SvgIcon/index.vue'// svg component

// 权限
import './permission.js'
import {permission} from '@/directive/permission/index.js'

const app = createApp(App)
installElementPlus(app)
app.use(router)
app.use(store)
app.component('svgIcon',SvgIcon)
app.directive('permission', permission) // 自定义指令v-permission
app.mount('#app')